import request from '@/utils/request'

const backendRoleApi = {
  getRoleAll: '/picachoframework/beckendRole/getRoleAll',
  getRoleAndPermission: '/picachoframework/beckendRole/getRoleAndPermission'
}

export function getRoleAll () {
  return request({
    url: backendRoleApi.getRoleAll,
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function getRoleAndPermission () {
  return request({
    url: backendRoleApi.getRoleAndPermission,
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
